package com.zgjkhis.modules.system.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.domain.PageResult;
import com.zgjkhis.modules.system.domain.Supplier;
import com.zgjkhis.modules.system.service.dto.SupplierDto;
import com.zgjkhis.modules.system.service.dto.SupplierQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author yzq
 * @Description 供应商
 * @Date 2021/6/23 9:45
 * @Param
 * @return
 **/
public interface SupplierService extends BaseService<Supplier>{


    /**
     * @Author yzq
     * @Description 分页查询数据
     * @Date 2021/6/23 11:20
     * @Param [criteria, pageable]
     * @return java.util.Map<java.lang.String,java.lang.Object>
     **/
    PageResult<SupplierDto> queryAll(SupplierQueryCriteria criteria, Pageable pageable);

    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<JobDto>
     */
    List<Supplier> queryAll(SupplierQueryCriteria criteria);

    SupplierDto findDetailById(String id);
}
